<!--
  Generated template for the FriendPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>
      联系人
      <a class="nav-btn" href="javascript:;" (click)="addNewFriend()">添加</a>
    </ion-title>
  </ion-navbar>

</ion-header>


<ion-content padding>
    <ion-searchbar (ionInput)="filter($event)"></ion-searchbar>
    <ion-list>
      <ion-item *ngFor="let item of friends" (click)="chatWith(item)">
        {{ item.username }}
      </ion-item>
    </ion-list>
</ion-content>
